require 'mail'

class TmailAdapter
  def initialize(message)
    @message = Mail.new(message)
  end

  def subject
    @message.subject
  end

  def from
    @message.from.first
  end

  def body
    @message.body.decoded
  end
end
